package com.alibaba.algo.config;

import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author : WangZhiPan
 * @date : 2021/10/12 11:15
 */
@Configuration
public class MybatisConfig {

    //    @Bean
    public MybatisPlugins mybatisPlugins() {
        return new MybatisPlugins();
    }


//    @Bean
//    @Resource
//    public SqlSession batchSqlSession(SqlSessionFactory sqlSessionFactory) {
//        SqlSessionTemplate batchSqlSession = new SqlSessionTemplate(sqlSessionFactory, ExecutorType.BATCH);
//        return batchSqlSession;
//    }


}
